<ul class="sf_admin_actions">
    <?php if ($form->isNew()): ?>
    <!--  --><?php //echo $helper->linkToDelete($form->getObject(), array(  'params' =>   array(  ),  'confirm' => 'Are you sure?',  'class_suffix' => 'delete',  'label' => 'Delete',)) ?>
    <!--  --><?php //echo $helper->linkToList(array(  'params' =>   array(  ),  'class_suffix' => 'list',  'label' => 'Back to list',)) ?>
    <!--  --><?php //echo $helper->linkToSave($form->getObject(), array(  'params' =>   array(  ),  'class_suffix' => 'save',  'label' => 'Save',)) ?>
    <!--  --><?php //echo $helper->linkToSaveAndAdd($form->getObject(), array(  'params' =>   array(  ),  'class_suffix' => 'save_and_add',  'label' => 'Save and add',)) ?>
    <?php else: ?>
    <!--  --><?php //echo $helper->linkToDelete($form->getObject(), array(  'params' =>   array(  ),  'confirm' => 'Are you sure?',  'class_suffix' => 'delete',  'label' => 'Delete',)) ?>
    <?php echo $helper->linkToList(array('params' => array(), 'class_suffix' => 'list', 'label' => '返回列表',)) ?>

    <?php

    $prevId = $reader_survey_feedback->getId() - 1;
    $nextId = $reader_survey_feedback->getId() + 1;

    if (Doctrine_Core::getTable('ReaderSurveyFeedback')->find($prevId) != null)
        echo link_to('上一篇', 'surveyFeedback/edit?id=' . ($reader_survey_feedback->getId() - 1));
    echo "&nbsp&nbsp&nbsp";
    if (Doctrine_Core::getTable('ReaderSurveyFeedback')->find($nextId) != null)
        echo link_to('下一篇', 'surveyFeedback/edit?id=' . ($reader_survey_feedback->getId() + 1));
    ?>
    <!--  --><?php //echo $helper->linkToSave($form->getObject(), array(  'params' =>   array(  ),  'class_suffix' => 'save',  'label' => 'Save',)) ?>
    <!--  --><?php //echo $helper->linkToSaveAndAdd($form->getObject(), array(  'params' =>   array(  ),  'class_suffix' => 'save_and_add',  'label' => 'Save and add',)) ?>
    <?php endif; ?>
</ul>
